import { reqTradeMarkList } from '@/api/product/trademark';
const state = {
    tradeMarkList: {}
}
const mutations = {
    RECEIVE_TRADEMARKLIST(state, data) {
        state.tradeMarkList = data
    }
}
const actions = {
    //获取品牌列表
    async getTradeMarkList({ commit }, { page, limit }) {
        const result = await reqTradeMarkList(page, limit)
        if (result.code == 200) {
            commit("RECEIVE_TRADEMARKLIST", result.data)
        }
    }
}
export default {
    namespaced: true, //开启命名空间
    state,
    mutations,
    actions
}